package com.example.tests;

import com.example.fw.ApplicationManager;
import com.example.fw.JdbcHelper;

import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.util.Properties;

/**
 * Created with IntelliJ IDEA.
 * User: pshevchenko
 * Date: 16.04.13
 * Time: 11:03
 * To change this template use File | Settings | File Templates.
 */
public class Sample {
    public static void main(String[] args) throws IOException {
        Properties properties = new Properties();
        properties.load(new FileReader(new File("application.properties")));
        ApplicationManager applicationManager = new ApplicationManager(properties);
//        System.out.println(applicationManager.getJdbcHelper().listGroups());
        System.out.println(applicationManager.getHibernateHelper().listGroups());

    }
}
